package com.cy.web.aop;

import java.util.Date;

import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.Interceptor;
/**
 * 权限拦截
 * @author CY
 *
 */
public class PermissionInterceptor  implements Interceptor {

	private static final long serialVersionUID = 1645183826084736082L;

	@Override
	public void destroy() {
	}

	@Override
	public void init() {
	}

	@Override
	public String intercept(ActionInvocation invocation) throws Exception {
		System.out.println("拦截****************"+new Date());
		return invocation.invoke();
	}


}
